﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Koonsoft.HYCRM.BLL;

public partial class FileHandler_HongKongFileHelper : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindData();
        }
    }

    private void BindData()
    {
        int delegateID = Convert.ToInt32(DelegateList.SelectedValue);
        int regionID = Convert.ToInt32(RegionList.SelectedValue);
        int branchID = Convert.ToInt32(BranchList.SelectedValue);
        string empolyeeName = EmpolyeeName.Text.Trim();

        GridView1.DataSource = new OrderBLL().GetHongKongFileHelperOrders(delegateID, regionID, branchID, empolyeeName);
        GridView1.DataBind();
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        BindData();
    }
}